//
//package com.jf.cloud.live.config;
//
//import com.jf.cloud.common.rocketmq.config.RocketMqAdapter;
//import com.jf.cloud.common.rocketmq.config.RocketMqConstant;
//import org.apache.rocketmq.spring.core.RocketMQTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Lazy;
//
///**
// * @author zz
// * @date 2021/3/30
// */
//@RefreshScope
//@Configuration
//public class RocketMqConfig {
//
//    @Autowired
//    private RocketMqAdapter rocketMqAdapter;
//
//    @Lazy
//    @Bean(destroyMethod = "destroy")
//    public RocketMQTemplate orderNotifyDistributionTemplate() {
//        return rocketMqAdapter.getTemplateByTopicName(RocketMqConstant.ORDER_NOTIFY_DISTRIBUTION_TOPIC);
//    }
//
//    @Lazy
//    @Bean(destroyMethod = "destroy")
//    public RocketMQTemplate refundSupplierNotifyDistributionTemplate() {
//        return rocketMqAdapter.getTemplateByTopicName(RocketMqConstant.REFUND_SHOP_NOTIFY_DISTRIBUTION_TOPIC);
//    }
//
////    @Lazy
////    @Bean(destroyMethod = "destroy")
////    public RocketMQTemplate supplierWalletMqTemplate() {
////        return rocketMqAdapter.getTemplateByTopicName(RocketMqConstant.SHOP_WALLET_UNLOCK_TOPIC);
////    }
//
//}
